import service from "@/api/index";
//报名管理接口
const REGEIST_RATION_INFO_API = "/api/RegistrationInfo/";
export default {
	//项目
	GetRegistrationInfoListApi: (params: object) => {
		//获取所有报名列表
		return service.post(`${REGEIST_RATION_INFO_API}GetRegistrationInfoList`, params);
	},
	AddRegistrationInfoApi: (params: object) => {
		//新增报名
		return service.post(`${REGEIST_RATION_INFO_API}AddRegistrationInfo`, params);
	},
	ApprovalGetRegistrationInfoDetailsApi: (id: string) => {
		//新增报名
		return service.post(`${REGEIST_RATION_INFO_API}ApprovalGetRegistrationInfoDetails`, { Id: id });
	},
	ApprovalRegistrationInfoApi: (params: object) => {
		//新增报名
		return service.post(`${REGEIST_RATION_INFO_API}ApprovalRegistrationInfo`, params);
	},
	ExportRegistrationInfoListApi: (params: object) => {
		//导出excel
		return service.post(`${REGEIST_RATION_INFO_API}ExportRegistrationInfoList`, params);
	},
	PDFRegistrationInfoListApi: (params: object) => {
		//导出PDF
		return service.post(`${REGEIST_RATION_INFO_API}PDFRegistrationInfoList`, params);
	},
	ApprovalRegistrationInfoListApi: (params: object) => {
		//批量审核报名
		return service.post(`${REGEIST_RATION_INFO_API}ApprovalRegistrationInfoList`, params);
	}
};
